package com.formssi.service.Impl;

import com.formssi.mapper.UserMapper;
import com.formssi.pojo.User2;
import com.formssi.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @description:
 * @author: ajims
 * @time: 2021/6/24 10:22
 */

@Service
public class UserServiceImpl implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public List<User2> findAllUser() {
        return userMapper.findAllUser();
    }

    @Override
    public int save(User2 user2) {
        return userMapper.save(user2);
    }

    @Override
    public int update(User2 user2) {
        return userMapper.update(user2);
    }

    @Override
    public User2 get(Integer id) {
        return userMapper.get(id);
    }

    @Override
    public int delete(Integer id) {
        return userMapper.delete(id);
    }
}
